package com.wicket.okrapp.biz.service.dto.common;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

import lombok.Data;
import java.util.Objects;

/**
 * @desc ReportTaskCycleFilterDto
 * @使用场景
 */
@Data
public class ReportTaskCycleFilterDto extends BaseDto implements Serializable {

  /**
   * 周期ID
   */
  @ApiModelProperty("周期ID")
  private String cycleId;

  /**
   * 周期名称
   */
  @ApiModelProperty("周期名称")
  private String cycleStandardName;

  /**
   * 周期类型标识
   */
  @ApiModelProperty("周期类型标识")
  private String cycleTypeCode;

  /**
   * 是否父周期 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否父周期")
  private String isFatherCycle;

  /**
   * 是否子周期 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否子周期")
  private String isSubCycle;

  /**
   * 是否中期 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否中期")
  private String isMetaphase;

  /**
   * 是否末级/子周期当前 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否末级/子周期当前")
  private String isCurrentCycle;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      ReportTaskCycleFilterDto that = (ReportTaskCycleFilterDto) o;
      return  cycleId == that.cycleId&&cycleStandardName == that.cycleStandardName&&cycleTypeCode == that.cycleTypeCode&&isFatherCycle == that.isFatherCycle&&isSubCycle == that.isSubCycle&&isMetaphase == that.isMetaphase&&isCurrentCycle == that.isCurrentCycle;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), cycleId,cycleStandardName,cycleTypeCode,isFatherCycle,isSubCycle,isMetaphase,isCurrentCycle);
    }

}
